#include <bits/stdc++.h>
using namespace std;

using ll = long long;
using ull = unsigned long long;
using pii = pair<int, int>;

constexpr int N = 100000 + 11;

int a[N];

//Hey I'm SkyWave!
int main() {
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    // Must not forget these!

    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int n;
    cin >> n;
    for (int i = 1; i <= n; ++i) {
        cin >> a[i];
    }

    sort(a + 1, a + n + 1);
    int cur = 0;
    for (int i = 1; i <= n; ++i) {
        if (a[cur + 1] < a[i]) {
            ++cur;
        }
    }
    
    cout << n - cur << '\n';
    return 0;
}